﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Meqs.Entity;
using Meqs.Logic.Interface;
using System.Collections.Generic;
using Castle.Windsor;

public partial class School_GradeTreeList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    //获取当前学校的性质
    [System.Web.Services.WebMethod]
    public static int GetSchoolType()
    {
        Hashtable ht = new Hashtable();
        ht.Add("SchoolMark", Common.GetConstSchoolMark());

        List<SchoolInfo> list = (List<SchoolInfo>)Container<ISchoolInfoLogic>.Instance.FindAll(ht);

        //判断是否存在纪录，并且存在大于0的值
        if (list.Count > 0  && list[0].SchoolOpt> 0)
            return list[0].SchoolOpt;
        else
            return -1;
    }
}
